package com.portico.dept.solarch



/**
 * This class is the default UserDetails implementation for the Stark Security plugin.
 * Since instances of this class will be used by the underlying Spring Security framework across
 * Hibernate sessions, we can't have any lazy loading in here (see special handling of roles below).
 */
class Person  {

//    String username
//    String password
//
    String fullName ;
    String email ;
    String title = "";

    static constraints = {
      email (email:true, unique:true)
      fullName (blank:false)

    }


    // Need to eagerly fetch role relations, because they'll be asked for later
    // by Spring Security when the hibernate session is no longer available
    static mapping = {
        roles lazy:false
    }


    String toString() {
      fullName
    }

}
